ExamPlay Light Logo
Hyni

Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 7 - No. 22)

In the bubble sort algorithm, how many times will the outer loop run, if there are 'Length' number of items in the list?
Length times
Length - 1 times
Length + 1 times
Twice.

Shpjegimi

The outer loop will perform the same amount of passes as the size of the list.

Komentet (0)

Identifikohu për të komentuar
Reklamim
BrainBehindX Inc Logo
©2026; Mundësuar nga BrainBehindX Inc